package zlatan_demo16_option

object ClassDemo04 {
  def main(args: Array[String]): Unit = {

    for (i <- 1 to 10 by 2) println(i)
    print("*" * 30)

    for (i <- 1 until 8) println(i) //234567
    print("*" * 30)

    val r = for (i <- 1 to 5 if i % 2 == 0) yield {
      println(i); i
    }


  }

}
